﻿
// <copyright file="BitmapInfo.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The bitmap info.
// </summary>


namespace SubhadraSolutions.Sharp.Utils.Drawing
{
    using System.Runtime.InteropServices;

    /// <summary>
        /// The bitmap info.
        /// </summary>
        [StructLayout(LayoutKind.Sequential)]
        public struct BitmapInfo
        {
            /// <summary>
            /// The size.
            /// </summary>
            public uint Size;

            /// <summary>
            /// The width.
            /// </summary>
            public int Width;

            /// <summary>
            /// The height.
            /// </summary>
            public int Height;

            /// <summary>
            /// The planes.
            /// </summary>
            public short Planes;

            /// <summary>
            /// The bit count.
            /// </summary>
            public short BitCount;

            /// <summary>
            /// The compression.
            /// </summary>
            public uint Compression;

            /// <summary>
            /// The size image.
            /// </summary>
            public uint SizeImage;

            /// <summary>
            /// The x pels per meter.
            /// </summary>
            public int XPelsPerMeter;

            /// <summary>
            /// The y pels per meter.
            /// </summary>
            public int YPelsPerMeter;

            /// <summary>
            /// The clr used.
            /// </summary>
            public uint ClrUsed;

            /// <summary>
            /// The clr important.
            /// </summary>
            public uint ClrImportant;

            /// <summary>
            /// The cols.
            /// </summary>
            [MarshalAs(UnmanagedType.ByValArray, SizeConst = 256)]
            public uint[] Cols;
        }

}
